package com.qztech.sdk.base;

import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

//import butterknife.ButterKnife;
//import butterknife.Unbinder;

public abstract class BaseFragment extends Fragment {

    //Unbinder mUnbinder;

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(layout(), container, false);
       // mUnbinder =  ButterKnife.bind(this, view);
        return view;
    }

    protected abstract int layout();

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
    }

    @Override
    public void onDestroyView() {
//        if (mUnbinder != null) {
//            mUnbinder.unbind();
//        }
        super.onDestroyView();
    }


}
